package com.xnfh.login.service

import android.content.Context
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import com.alibaba.android.arouter.facade.annotation.Route
import com.xnfh.common.constant.ArouterPath
import com.xnfh.common.service.ILoginService
import com.xnfh.framework.utils.ActManager
import com.xnfh.login.LoginActivity


/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/11/8 10:10
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/11/8 10:10
 * @UpdateRemark: 更新说明
 */
@Route(path = ArouterPath.SERVICE.LOGIN_SERVICE)
class LoginService : ILoginService {
    override fun isLogin(): Boolean {
        return true
    }

    override fun login(context: Context) {
        LoginActivity.start(context)
    }

    override fun readPolicy(context: Context) {

    }

    override fun logout(context: Context) {
        login(context)
    }

    override fun init(context: Context?) {

    }
}